package com.shqcjd.yunweiyanoperator.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shqcjd.yunweiyanoperator.R;
import com.shqcjd.yunweiyanoperator.model.pojo.SendRecordBean;
import com.shqcjd.yunweiyanoperator.model.pojo.ShareBean;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SendRecordAdapter extends BaseQuickAdapter<SendRecordBean.ListBean, SendRecordAdapter.ViewHolder> {

    public SendRecordAdapter() {
        super(R.layout.item_send_record);
    }

    @Override
    protected void convert(SendRecordAdapter.ViewHolder helper, SendRecordBean.ListBean item) {
        helper.tv_title.setText(item.title);
        helper.tv_name.setText("接收人:"+item.receiverUserName);
        helper.tv_time.setText("发送时间:"+item.sendTime);
    }

    class ViewHolder extends BaseViewHolder {
        @BindView(R.id.tv_title)
        TextView tv_title;
        @BindView(R.id.tv_name)
        TextView tv_name;
        @BindView(R.id.tv_time)
        TextView tv_time;
        public ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }
}
